﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BaseData;
using BaseData.Models;
namespace BaseUtility
{
    public class AccClass
    {
        public Enums.AccType Type;
        public int Id { get; set; }
        public string Name { get; set; }
        public string AccPass { get; set; }
        public int? FlagStatus { get; set; }
        #region - 当前站点 -
        private int siteID = 1;
        /// <summary>
        /// 当前操作的网站ID
        /// </summary>
        public int SiteID
        {
            get { return siteID; }
            set { siteID = value; }
        }
        /// <summary>
        /// 站点标记
        /// </summary>
        public string SiteTag { get; set; }
        /// <summary>
        /// 站点名称
        /// </summary>
        public string SiteName { get; set; }
        #endregion
        #region - 当前模块和项目 -
        //public Enums.TreeStat.Mode ModeID { get; set; }
        //public Enums.TreeStat.Item ItemID { get; set; }
        #endregion
        #region - Cookie中的值 -
        /// <summary>
        /// Cookie中的值
        /// </summary>
        public Guid CookieValue { get; set; }
        #endregion
        #region - IP地址 -
        /// <summary>
        /// ip地址
        /// </summary>
        public string IP { get; set; }
        #endregion
        #region - IP 对应城市 -
        /// <summary>
        /// IP 对应城市
        /// </summary>
        public string Location { get; set; }
        #endregion
        #region - 浏览器类型 -
        /// <summary>
        /// 浏览器类型
        /// </summary>
        public string BrowserType { get; set; }
        #endregion
        #region - 是否在线 -
        /// <summary>
        /// 是否在线
        /// </summary>
        public bool IsOnline { get; set; }
        #endregion
        #region - 登录时间 -
        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime LoginDateTime { get; set; }
        #endregion
        #region - 退出时间 -
        /// <summary>
        /// 退出时间
        /// </summary>
        public DateTime SignOutDateTime { get; set; }
        #endregion
        #region - 退出原因 -
        /// <summary>
        /// 退出原因
        /// </summary>
        public string SignOutInfo { get; set; }
        #endregion
        #region - 最后一次操作时间 -
        /// <summary>
        /// 最后一次操作时间
        /// </summary>
        public DateTime LastLoginDateTime { get; set; }
        #endregion
        #region - 最后访问的页面 -
        /// <summary>
        /// 最后访问的页面
        /// </summary>
        public string LastUrl { get; set; }
        #endregion
        #region - 在线分钟数 -
        /// <summary>
        /// 在线分钟数
        /// </summary>
        public double OnlineSeconds { get; set; }
        #endregion
    }
}
